vr2-2-09.wrl
[ VRML source code ]
#VRML V2.0 utf8
#vr2-2-09.wrl
Shape {
appearance Appearance {
material Material {
diffuseColor 1 1 0
}
}
geometry Box { size 1 1 1 }
}
Group {
children [
Shape {
appearance Appearance {
material DEF SphereTrans Material {
diffuseColor 0 1 0
}
}
geometry Sphere { }
},
DEF Timer TimeSensor {
cycleInterval 5
loop TRUE
},
DEF TransValue ScalarInterpolator {
key [ 0, 0.5, 1 ]
keyValue [ 0, 1, 0 ]
}
]
}
ROUTE Timer.fraction_changed TO TransValue.set_fraction
ROUTE TransValue.value_changed TO SphereTrans.set_transparency